/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 店铺管理Entity
 * @author 李欣荣
 * @version 2018-10-08
 */
public class HkUserShop extends DataEntity<HkUserShop> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户
	private String shopType;		// 店铺类型
	private String name;		// 店铺名称
	private String shopPassword;		// 店铺密码
	private String category;		// 主营类目
	private String imgSrc;		// logo
	private String commodityImgSrc;		// 商品图片
	private String commodityName;		// 商品名称
	private String commodityPrice;		// 商品价格
	private String otherShopLink;		// 第三方店铺地址
	private String referralCode;		// 入驻推荐码
	private String state;		// 状态
	
	public HkUserShop() {
		super();
	}

	public HkUserShop(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=32, message="店铺类型长度必须介于 0 和 32 之间")
	public String getShopType() {
		return shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType;
	}
	
	@Length(min=0, max=32, message="店铺名称长度必须介于 0 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="店铺密码长度必须介于 0 和 32 之间")
	public String getShopPassword() {
		return shopPassword;
	}

	public void setShopPassword(String shopPassword) {
		this.shopPassword = shopPassword;
	}
	
	@Length(min=0, max=32, message="主营类目长度必须介于 0 和 32 之间")
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}
	
	@Length(min=0, max=200, message="logo长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="商品图片长度必须介于 0 和 200 之间")
	public String getCommodityImgSrc() {
		return commodityImgSrc;
	}

	public void setCommodityImgSrc(String commodityImgSrc) {
		this.commodityImgSrc = commodityImgSrc;
	}
	
	@Length(min=0, max=32, message="商品名称长度必须介于 0 和 32 之间")
	public String getCommodityName() {
		return commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}
	
	@Length(min=0, max=32, message="商品价格长度必须介于 0 和 32 之间")
	public String getCommodityPrice() {
		return commodityPrice;
	}

	public void setCommodityPrice(String commodityPrice) {
		this.commodityPrice = commodityPrice;
	}
	
	@Length(min=0, max=200, message="第三方店铺地址长度必须介于 0 和 200 之间")
	public String getOtherShopLink() {
		return otherShopLink;
	}

	public void setOtherShopLink(String otherShopLink) {
		this.otherShopLink = otherShopLink;
	}
	
	@Length(min=0, max=32, message="入驻推荐码长度必须介于 0 和 32 之间")
	public String getReferralCode() {
		return referralCode;
	}

	public void setReferralCode(String referralCode) {
		this.referralCode = referralCode;
	}
	
	@Length(min=0, max=11, message="状态长度必须介于 0 和 11 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}